package com.itlong.cloud.iottp;

import com.itlong.cloud.POJO.PO.DeviceEntranceInfoPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <desc>
 *      设备在线接口。
 * <desc/>
 *
 * @createDate 2019/07/03.
 */
@FeignClient(name = "iot-tp-service")
public interface IIOTHwServiceClient {

    /**
     * <desc>
     *      发布消息并拿到消息结果
     * </desc>
     *
     * @param commandName  命令名称
     * @param deviceId  华为云iot设备id
     * @param msg 消息内容
     * @author Jiaqi.X
     * @createDate 2018/04/11
     */
    @RequestMapping(path = "/iot/huawei/pubDeviceMessageResponse",method = RequestMethod.POST)
    public String pubDeviceMessageResponse(@RequestParam("serviceId") String serviceId,@RequestParam("commandName") String commandName,
                                           @RequestParam("deviceId") String deviceId,@RequestParam("msg") String msg);
}
